/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * Copyright (c) 2014, Joyent, Inc.
 */

#server-link-aggr-modal .modal-body {
  padding: 0;
}
.link-aggr-component {
  h1 { .modal-title; font-size: 18px; padding: 15px 15px; line-height: 18px;  }
  margin: 0;
  .buttons {
    background: #fefefe;
    text-align: right;
    padding: 15px;
  }
  .new-link-aggr { float: right; margin-top: -40px; margin-right: 15px; }
  .link-aggr-list, .link-aggr-form {
    overflow: hidden;
    background: #eee;
    padding: 15px;
  }

  .link-aggr-form {
    .alert { margin-bottom: 0; };
    .btn {
      margin-top: 12px;
    }
  }
  .link-aggr-form form {
    padding: 10px;
    background: #fff;

    .nics {
      margin-bottom: 4px;
      .nic { padding: 5px; margin-bottom: 1px; }
      .nic.selected { background: @state-success-bg; }
      .nic > * { display: inline-block;  }
      .nic > label { margin: 0 10px; }
      .nic .mac { font-family: @font-family-monospace;}
      font-size: 12px;
      .nic > label input[type=checkbox] { margin: 0; margin-top: -2px; margin-right: 10px;   }
    }
  }
  .link-aggr-mac {
    margin: 0 15px;
  }
  .link-aggr-ifname {
    font-weight: 500;
  }

  .link-aggr-list {
    .empty {
      color: @gray-light;
      text-align: center;
      font-size: 13px;
      padding: 32px 0;
    }
    .actions {
      float: right;
      .btn {
        font-size: 12px;
        padding: 2px 10px;
      }
      .btn-delete { color: @brand-danger; margin-left: 1px;}
    }
    .link-aggr {
      padding: 10px;
      margin-left: 0px;
      margin-right: 0px;
      background: #fff;
    }
    .link-aggr-name {
      vertical-align: top;
      display: inline-block;
      font-weight: bold;
    }
    .mac {
       font-family: @font-family-monospace;
       font-size: 12px;
    }
    .link-aggr-interfaces {
      display: inline-block;
    }
    .link-aggr-interface {
      border-left: 3px solid @brand-success;
    }
  }

}
